
<%@ page import="psicomodelagem.Estagiario" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'estagiario.label', default: 'Estagiario')}" />
        <title><g:message code="default.edit.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
            <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.edit.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${estagiarioInstance}">
            <div class="errors">
                <g:renderErrors bean="${estagiarioInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form method="post" >
                <g:hiddenField name="id" value="${estagiarioInstance?.id}" />
                <g:hiddenField name="version" value="${estagiarioInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="nome"><g:message code="estagiario.nome.label" default="Nome" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estagiarioInstance, field: 'nome', 'errors')}">
                                    <g:textField name="nome" value="${estagiarioInstance?.nome}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="email"><g:message code="estagiario.email.label" default="Email" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estagiarioInstance, field: 'email', 'errors')}">
                                    <g:textField name="email" value="${estagiarioInstance?.email}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="RG"><g:message code="estagiario.RG.label" default="RG" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estagiarioInstance, field: 'RG', 'errors')}">
                                    <g:textField name="RG" value="${estagiarioInstance?.RG}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="telefoneResidencial"><g:message code="estagiario.telefoneResidencial.label" default="Telefone Residencial" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estagiarioInstance, field: 'telefoneResidencial', 'errors')}">
                                    <g:textField name="telefoneResidencial" value="${estagiarioInstance?.telefoneResidencial}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="sexo"><g:message code="estagiario.sexo.label" default="Sexo" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estagiarioInstance, field: 'sexo', 'errors')}">
                                    <g:select name="sexo" from="${estagiarioInstance.constraints.sexo.inList}" value="${estagiarioInstance?.sexo}" valueMessagePrefix="estagiario.sexo"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="estadoCivil"><g:message code="estagiario.estadoCivil.label" default="Estado Civil" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estagiarioInstance, field: 'estadoCivil', 'errors')}">
                                    <g:select name="estadoCivil" from="${estagiarioInstance.constraints.estadoCivil.inList}" value="${estagiarioInstance?.estadoCivil}" valueMessagePrefix="estagiario.estadoCivil"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="login"><g:message code="estagiario.login.label" default="Login" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estagiarioInstance, field: 'login', 'errors')}">
                                    <g:textField name="login" maxlength="40" value="${estagiarioInstance?.login}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="senha"><g:message code="estagiario.senha.label" default="Senha" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estagiarioInstance, field: 'senha', 'errors')}">
                                    <g:textField name="senha" maxlength="40" value="${estagiarioInstance?.senha}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="salt"><g:message code="estagiario.salt.label" default="Salt" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estagiarioInstance, field: 'salt', 'errors')}">
                                    <g:textField name="salt" maxlength="40" value="${estagiarioInstance?.salt}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="telefoneTrabalho"><g:message code="estagiario.telefoneTrabalho.label" default="Telefone Trabalho" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estagiarioInstance, field: 'telefoneTrabalho', 'errors')}">
                                    <g:textField name="telefoneTrabalho" value="${estagiarioInstance?.telefoneTrabalho}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="idade"><g:message code="estagiario.idade.label" default="Idade" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estagiarioInstance, field: 'idade', 'errors')}">
                                    <g:textField name="idade" value="${fieldValue(bean: estagiarioInstance, field: 'idade')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="naturalidade"><g:message code="estagiario.naturalidade.label" default="Naturalidade" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estagiarioInstance, field: 'naturalidade', 'errors')}">
                                    <g:textField name="naturalidade" value="${estagiarioInstance?.naturalidade}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="CPF"><g:message code="estagiario.CPF.label" default="CPF" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estagiarioInstance, field: 'CPF', 'errors')}">
                                    <g:textField name="CPF" value="${fieldValue(bean: estagiarioInstance, field: 'CPF')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="autoridades"><g:message code="estagiario.autoridades.label" default="Autoridades" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estagiarioInstance, field: 'autoridades', 'errors')}">
                                    
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="dateCreated"><g:message code="estagiario.dateCreated.label" default="Date Created" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estagiarioInstance, field: 'dateCreated', 'errors')}">
                                    <g:datePicker name="dateCreated" precision="day" value="${estagiarioInstance?.dateCreated}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="dataNascimento"><g:message code="estagiario.dataNascimento.label" default="Data Nascimento" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estagiarioInstance, field: 'dataNascimento', 'errors')}">
                                    <g:datePicker name="dataNascimento" precision="day" value="${estagiarioInstance?.dataNascimento}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="endereco"><g:message code="estagiario.endereco.label" default="Endereco" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estagiarioInstance, field: 'endereco', 'errors')}">
                                    <g:textField name="endereco" value="${estagiarioInstance?.endereco}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="celular"><g:message code="estagiario.celular.label" default="Celular" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estagiarioInstance, field: 'celular', 'errors')}">
                                    <g:textField name="celular" value="${estagiarioInstance?.celular}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="senhaConfirmacao"><g:message code="estagiario.senhaConfirmacao.label" default="Senha Confirmacao" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estagiarioInstance, field: 'senhaConfirmacao', 'errors')}">
                                    <g:textField name="senhaConfirmacao" value="${estagiarioInstance?.senhaConfirmacao}" />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
